package com.github.server.core;

import com.github.livebase.util.KeyValuePairs;
import com.github.server.interfaces.HttpHandler;
import com.github.server.interfaces.ResourceMapping;

public class SimpleMapping extends KeyValuePairs<String, HttpHandler> implements ResourceMapping {
        public SimpleMapping(String key, HttpHandler value) {
            super(key, value);
        }

        @Override
        public String getPath() {
            return getKey();
        }

        @Override
        public HttpHandler getHandler() {
            return getValue();
        }
    }